<?php
/**
 * @version:    $Id: loadCSS.php 2 2011-07-26 00:59:53Z epatarroyo $
 * @copyright:    Copyright (C) 2010 OpenWeb Software. All rights reserved.
 * @license:    GNU/GPL
 * This version may have been modified pursuant to the GNU General Public License,
 * and as distributed it includes or is derivative of works licensed under the
 * GNU General Public License or other free or open source software licenses.
 */

$cssBrowser = $this->baseurl . "/templates/" . $this->template . "/css/" . "browser-" . strtolower(browserDetect()) . ".css";

$col1 = (!$editMode && ($this->countModules( 'col1Top' ) || $this->countModules( 'nav02' ) || $this->countModules( 'col1Bottom' ))) ?  TRUE : FALSE;
$col2 = (!$editMode && ($this->countModules( 'col2Top' ) || $this->countModules( 'nav04' ) || $this->countModules( 'col2Bottom' ))) ?  TRUE : FALSE;
$contentSpan = "col-md-12";
if ($col1 || $col2) :
  $contentSpan = "col-md-9";
endif;
if ($col1 && $col2) :
  $contentSpan = "col-md-6";
endif;


$featured1A = $featured1B = $featured1C = $featured2A = $featured2B = $featured2C = $featured3A = $featured3B = $featured3C = "col-md-12";

if ($this->countModules('featured1A') && $this->countModules('featured1B') && $this->countModules('featured1C')) : 
$featured1A = $featured1B = $featured1C = "col-md-4";
endif;

if ($this->countModules('featured1A') && $this->countModules('featured1B') && !$this->countModules('featured1C')) : 
$featured1A = $featured1B = "col-md-6";
endif;

if ($this->countModules('featured1A') && !$this->countModules('featured1B') && $this->countModules('featured1C')) : 
$featured1A = "col-md-8";
$featured1C = "col-md-4";
endif;

if (!$this->countModules('featured1A') && $this->countModules('featured1B') && $this->countModules('featured1C')) : 
$featured1B = "col-md-4";
$featured1C = "col-md-8";
endif;

if ($this->countModules('featured2A') && $this->countModules('featured2B') && $this->countModules('featured2C')) : 
$featured2A = $featured2B = $featured2C = "col-md-4";
endif;

if ($this->countModules('featured2A') && $this->countModules('featured2B') && !$this->countModules('featured2C')) : 
$featured2A = $featured2B = "col-md-6";
endif;

if ($this->countModules('featured2A') && !$this->countModules('featured2B') && $this->countModules('featured2C')) : 
$featured2A = "col-md-8";
$featured2C = "col-md-4";
endif;

if (!$this->countModules('featured2A') && $this->countModules('featured2B') && $this->countModules('featured2C')) : 
$featured2B = "col-md-4";
$featured2C = "col-md-8";
endif;

if ($this->countModules('featured3A') && $this->countModules('featured3B') && $this->countModules('featured3C')) : 
$featured3A = $featured3B = $featured3C = "col-md-4";
endif;

if ($this->countModules('featured3A') && $this->countModules('featured3B') && !$this->countModules('featured3C')) : 
$featured3A = $featured3B = "col-md-6";
endif;

if ($this->countModules('featured3A') && !$this->countModules('featured3B') && $this->countModules('featured3C')) : 
$featured3A = "col-md-8";
$featured3C = "col-md-4";
endif;

if (!$this->countModules('featured3A') && $this->countModules('featured3B') && $this->countModules('featured3C')) : 
$featured3B = "col-md-4";
$featured3C = "col-md-8";
endif;

